﻿@model Twitter.Models.FavesPart
@using Orchard.Utility.Extensions;
@using Twitter.Models;
@using Twitter.Models.Enums;

@{ Script.Require("jQuery");
   Script.Require("iColorPicker"); }
<fieldset>
    <legend>@T("Twitter Faves")</legend>
    <div>
        <label for="@Html.FieldIdFor(m => m.Username)">@T("Username")</label>
        @Html.TextBoxFor(m => m.Username, new { @class = "text-box" })
        @Html.ValidationMessage("Username", "*")
    </div>
    <div>
        <label for="@Html.FieldIdFor(m => m.WidgetTitle)">@T("Title")</label>
        @Html.TextBoxFor(m => m.WidgetTitle, new { @class = "text-box" })
    </div>
    <div>
        <label for="@Html.FieldIdFor(m => m.Caption)">@T("Caption")</label>
        @Html.TextBoxFor(m => m.Caption, new { @class = "text-box" })
    </div>
    <div>
        <label for="@Html.FieldIdFor(m => m.Width)">@T("Width")</label>
        @Html.TextBoxFor(m => m.Width, new { @class = "text-small" })
        @Html.ValidationMessage("Width", "*")
    </div>
    <div>
        <label for="@Html.FieldIdFor(m => m.Height)">@T("Height")</label>
        @Html.TextBoxFor(m => m.Height, new { @class = "text-small" })
        @Html.ValidationMessage("Height", "*")
    </div>
    <div>
        <label for="@Html.FieldIdFor(m => m.BackgroundShellColor)">@T("Background Shell Color")</label>
        @Html.TextBoxFor(m => m.BackgroundShellColor, new { @class = "iColorPicker" })
    </div>
    <div>
        <label for="@Html.FieldIdFor(m => m.ShellColor)">@T("Shell Color")</label>
        @Html.TextBoxFor(m => m.ShellColor, new { @class = "iColorPicker" })
    </div>
    <div>
        <label for="@Html.FieldIdFor(m => m.TweetsBackgroundColor)">@T("Tweets Background Color")</label>
        @Html.TextBoxFor(m => m.TweetsBackgroundColor, new { @class = "iColorPicker" })
    </div>
    <div>
        <label for="@Html.FieldIdFor(m => m.TweetsColor)">@T("Tweets Color")</label>
        @Html.TextBoxFor(m => m.TweetsColor, new { @class = "iColorPicker" })
    </div>
    <div>
        <label for="@Html.FieldIdFor(m => m.TweetsLinksColor)">@T("Tweets Links Color")</label>
        @Html.TextBoxFor(m => m.TweetsLinksColor, new { @class = "iColorPicker" })
    </div>
    <div>
        <label for="@Html.FieldIdFor(m => m.NumberOfTweets)">@T("Number of tweets")</label>
        @Html.TextBoxFor(m => m.NumberOfTweets, new { @class = "text-small" })
    </div>
    <div>
        <label for="@Html.FieldIdFor(m => m.ScrollBar)">@T("ScrollBar")</label>
        @Html.CheckBoxFor(m => m.ScrollBar)
    </div>
    <div>
        <label for="@Html.FieldIdFor(m => m.Loop)">@T("Loop")</label>
        @Html.CheckBoxFor(m => m.Loop)
    </div>
    <div>
        <label for="@Html.FieldIdFor(m => m.Live)">@T("Live")</label>
        @Html.CheckBoxFor(m => m.Live)
    </div>
    <div>
        <label for="@Html.FieldIdFor(m => m.HashTags)">@T("HashTags")</label>
        @Html.CheckBoxFor(m => m.HashTags)
    </div>
    <div>
        <label for="@Html.FieldIdFor(m => m.Timestamp)">@T("Timestamp")</label>
        @Html.CheckBoxFor(m => m.Timestamp)
    </div>
    <div>
        <label for="@Html.FieldIdFor(m => m.Avatars)">@T("Avatars")</label>
        @Html.CheckBoxFor(m => m.Avatars)
    </div>
    <div>
        <label for="@Html.FieldIdFor(m => m.Behavior)">@T("Behavior")</label>
        @Html.DropDownListFor(m => m.Behavior, Enum.GetValues(typeof(WidgetBehavior)).Cast<WidgetBehavior>().Select(x => new SelectListItem { Text = x.ToString(), Value = ((int)x).ToString() }))
    </div>
    <div>
        <label for="@Html.FieldIdFor(m => m.Interval)">@T("Interval")</label>
        @Html.TextBoxFor(m => m.Interval, new { @class = "text-small" })
    </div>
</fieldset>